package com.example.delivery.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.delivery.pojo.Review;
import com.example.delivery.service.ReviewService;
import com.example.delivery.mapper.ReviewMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author huber
* @description 针对表【review】的数据库操作Service实现
* @createDate 2025-03-18 13:29:36
*/
@Service
public class ReviewServiceImpl extends ServiceImpl<ReviewMapper, Review>
    implements ReviewService{

    @Autowired
    private ReviewMapper reviewMapper;

    @Override
    public List<Review> findAll(Integer restaurantId) {
       return reviewMapper.findAll(restaurantId);

    }
}




